"""
自定义文件存储类
基于Django的Storage类实现FastDFS存储
"""



from django.core.files.storage import Storage

class MyStorage(Storage):

    def _open(self, name, mode='rb'):
        """Retrieve the specified file from storage."""
        pass

    def _save(self, name, content, max_length=None):
        pass

    def url(self, name):

        return "http://192.168.233.128:8888/" + name